public class Cat {
    private String name;
    private int weight, strength;

    public Cat(String name, int weight, int strength) {
        this.name = name;
        this.weight = weight;
        this.strength = strength;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getStrength() {
        return strength;
    }

    public void setStrength(int strength) {
        this.strength = strength;
    }

    public void show() {
        System.out.println("这只猫叫" + name + ",体重是" + weight + "kg,体力为" + strength);
    }

    public void pk(Mouse mouse) {
        System.out.println("老鼠被咬死");
        strength += 100;
        mouse.setStrength(0);
    }

}